package gui;

import javax.swing.JLabel;


/**
 * @Title Whichdecimalplace
 * @Date 11/21/11
 * @author Hannah Carlson
 * @Team Group 1
 */

public class Whichdecimalplace implements Runnable{
	
	/**
	 * initialize class variables
	 */

	int num ;
	int z;
	
	/**
	 * Blank Constructor
	 */
	
	public Whichdecimalplace(){}
	
	/**
	 * Constructor to take in a int number
	 * @param num
	 */
	
	public Whichdecimalplace(int num){
		this.num =num;
	}
	/**
	 * This method makes the int number that is taken in to a float
	 * @return num2
	 */
	public float StartingNumber(){
		float num2 = (float) num / 100000;
		return num2;
	}
	
	/**
	 * This method takes the int number and returns the first number in that number. 
	 * @precondition Number is generated from random generator
	 * @postcondition Random number is divided so the first number of the random number is returned
	 * @return a
	 */
	public int tenths(){
		int a;
		z = num /10000;
		a = z % 1000;
		return a;}
	
		/**
		 * This method takes the int number and returns the second number in that number.
		 * @precondition Number is generated from random generator
		 * @postcondition Random number is divided so the second number of the random number is returned
		 * @return b
		 */
	
	public int hundredths(){
		int b;
		z = num % 10000;
		b = z/1000;
		return b;
		}
	
	/**
	 * This method takes the int number and returns the third number in that number
	 * @precondition Number is generated from random generator
	 * @postcondition Random number is divided so the third number of the random number is returned
	 * @return c
	 */
	public int thousandths(){
		int c;
		z = num % 1000;
		c = z /100;
		
		return c;
		}
	/**
	 * This method takes the int number and returns the fourth number in that number
	 * @precondtion Number is generated from random generator
	 * @postcondtion Random number is divided and the fourth number of the random number is returned
	 * @return d
	 */
	
	public int tenthousandths(){
		int d;
		z = num % 100;
		d = z /10;
		return d;}

	
	
	@Override
	public void run() {
		
		
		
	}




}

	

